package com.jian.java.controller;

import com.jian.java.bean.Person;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jiange
 * @create 2021-04-27-20:28
 */
@RestController
@Slf4j
public class MyController {
    @Autowired
    private Person person;

    @GetMapping("/person")
    public Person person(){
        log.info("jange");
        return person;
    }
}
